<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <p>233fsdfsdf</p>
    <!-- <script>
      function fn(x, y) {
        if (!x || !y) {
          throw new Error("用户没有传递参数");
        }
      }
      console.log(fn());
    </script> -->

    <script>
      function fn() {
        try {
          const p = document.querySelector("ps");
          p.style.color = "red";
        } catch (err) {
          console.log(err);
        } finally {
          console.log("最后信息");
        }
      }
      fn();
    </script>
  </body>
</html>
